<h1>New run</h1>

<form action="/runs" class="new_run" id="new_run" method="post"><div style="margin:0;padding:0"><input name="authenticity_token" type="hidden" value="u9dH82/alBlwKQuTJ2kGVq2l8uB16N9iJqV09iwCwyU=" /></input</div>

  <p>
    <label for="run_mu_ip">Mu IP </label>
    <input id="run_mu_ip" name="run[mu_ip]" size="30" type="text" value="<%= Run.mu_ip %> " />
  </p>

  <p>
    <label for="run_testbed_name">Testbed name&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
    <% if Run.testbeds.nil? %>
      <input id="run_testbed_name" name="run[testbed_name]" size="30" type="text" />
    <% else %>
      <select name="run[testbed_name]">
        <% Run.testbeds.sort.each do | k, v | %>
          <option value="<%="#{k}"%>"><%="#{k}"%></option>
        <% end %>
      </select>
    <% end %>
  </p>

  <% if Run.testbeds.nil? %>
  <p>
      <label for="run_testbed_uuid">Testbed uuid&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
      <input id="run_testbed_uuid" name="run[testbed_uuid]" size="30" type="text" />
  <% end %>
  
    <p>
    <label for="run_target_name">Target name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; </label>
    <% if Run.targets.nil? %>
        <input id="run_target_name" name="run[target_name]" size="30" type="text" />
    <% else %>
      <select name="run[target_name]">
        <% Run.targets.sort.each do | k, v | %>
          <option value="<%="#{k}"%>"><%="#{k}"%></option>
        <% end %>
      </select>
    <% end %>
  </p>

  <% if Run.targets.nil? %>
  <p>
    <label for="run_target_uuid">Target uuid&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
    <input id="run_target_uuid" name="run[target_uuid]" size="30" type="text" />
  </p>
  <% end %>
  
  <p>
    <label for="run_scenario_name">Scenario name &nbsp;&nbsp;&nbsp;&nbsp;</label>
    <% if Run.scenarios.nil? %>
       <input id="run_scenario_name" name="run[scenario_name]" size="30" type="text" />
    <% else %>
      <select name="run[scenario_name]">
        <% Run.scenarios.sort.each do | k, v | %>
          <option value="<%="#{k}"%>"><%="#{k}"%></option>
        <% end %>
      </select>
    <% end %>
  </p>

  <% if Run.scenarios.nil? %>
  <p>
    <label for="run_scenario_uuid">Scenario uuid&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
    <input id="run_scenario_uuid" name="run[scenario_uuid]" size="30" type="text" />
  </p>
  <% end %>
  
  <p>
    <label for="run_testsuite_name">Testsuite name &nbsp;&nbsp;&nbsp;&nbsp; </label>
    <% if Run.testsuites.nil? %>
       <input id="run_testsuite_name" name="run[testsuite_name]" size="30" type="text" />
    <% else %>
      <select name="run[testsuite_name]">
        <% Run.testsuites.sort.each do | k, v | %>
          <option value="<%="#{k}"%>"><%="#{k}"%></option>
        <% end %>
      </select>
    <% end %>
  </p>
  <p>

   <% if Run.testsuites.nil? %>
    <label for="run_testsuite_uuid">Testsuite uuid&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
    <input id="run_testsuite_uuid" name="run[testsuite_uuid]" size="30" type="text" />
  </p>
  <% end %>
  
  <p>
    <label for="run_metadata">Notes&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
    <input id="run_metadata" name="run[metadata]" size="30" type="text" />
  </p>
  <p>
    <label for="run_status">Status&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
    <input id="run_status" name="run[status]" size="30" type="text" value="created" />
  </p>
  <p>
    <input id="run_submit" name="commit" type="submit" value="Create" />

  </p>
</form>


<%= link_to 'Back', runs_path %>